<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>商户管理</title>
		<link rel="stylesheet" type="text/css" href="css/shgl.css"/>
		<link rel="stylesheet" type="text/css" href="css/guanlixitong.css"/>
		<!--<link rel="stylesheet" type="text/css" href="css/comm.css"/>-->
		<link rel="stylesheet" type="text/css" href="css/xiangxi.css"/>
		<link rel="stylesheet" type="text/css" href="css/xiugai.css"/>
		<link rel="stylesheet" type="text/css" href="css/shgl2.css"/>
	</head>
	<body>
		<div class="main_content">
			<div class="con_left">
				<div class="l-box ">
					<a href="shgl.html">添加商户</a>
				</div>
				<div class="l-box in">
					<a href="shgl2.html">商户管理</a>
				</div>
			</div>
			<div class="con_right fl" style="margin-top: 45px;">
				<div class="r_main">
					<form action="" style="display: inline;">
						<div class="search">
							<span>条件查找<strong>|</strong></span>
								<div class="d-i-b vertical-top">
									<div class="s-one d-i-b">每页显示条数：
										<div class="f-inp-s d-i-b yeshu">
											<div>
												<select name='make'>
												    <option value='默认' selected>默认</option>
												    <option value='10'>10</option>
												    <option value='30'>30</option>
												    <option value='50'>50</option>
												    <option value='100'>100</option>
												    <option value='300'>300</option>
												</select>
											</div>
											<div class="s_img">
												<img src="img/select.png"/>
											</div>
										</div>
									</div>
									<div class="s-one d-i-b">排序：
										<div class="f-inp-s d-i-b px">
											<div>
												<select name='make'>
												    <option value='商户编号' selected>商户编号</option>
												    <option value='登录名'>登录名</option>
												    <option value='企业名称'>企业名称</option>
												    <option value='创建人'>创建人</option>
												    <option value='创建日期'>创建日期</option>
												</select>
											</div>
											<div class="s_img">
												<img src="img/select.png"/>
											</div>
										</div>
									</div>
									<div class="s-one d-i-b">搜索选项：
										<div class="f-inp-s d-i-b">
											<div>
												<select name='make'>
												    <option value='商户编号' selected>商户编号</option>
												    <option value='企业名称'>企业名称</option>
												    <option value='企业地址'>企业地址</option>
												    <option value='联系电话'>联系电话</option>
												    <option value='负责人'>负责人</option>
												    <option value='负责人手机号码'>负责人手机号码</option>
												    <option value='QQ'>QQ</option>
												    <option value='电子邮件'>电子邮件</option>
												</select>
											</div>
											<div class="s_img">
												<img src="img/select.png"/>
											</div>
										</div><input type="text"></inpu><button class="btn-s">搜索</button>
									</div>
								</div>
						</div>
						<table border="1" cellspacing="0" cellpadding="0">
							<tr>
								<th style="width: 20px;">
			                    <input onclick="_checkFormAll(this.checked)" type="checkbox"></th>
				                <th style="width: 60px;">批量<br>
				                    添加机器</th>
				                <th style="width: 30px;">下属<br>
				                    机器</th>
				                <th style="width: 30px;">修改</th>
				                <th style="width: 30px;">重设<br>
				                    密码</th>
				                <th style="width: 40px;">Api<br>
				                    设置</th>
				                <th style="width: 60px;">管理员<br>
				                    微信绑定</th>
				                <th style="width: 60px;">是否开通<br>
				                    商户通</th>
				                <th style="width: 60px;">商户<br>
				                    启用状态</th>
				                <th>账号</th>
				                <th style="width: 30px;">商户<br>
				                    编号</th>
				                <th>商户名称</th>
				                <th>联系电话</th>
				                <th style="width: 60px;">负责人</td>
				                <th style="width: 80px;">负责人<br>
				                    手机号码</th>
				                <th>商户地址</th>
							</tr>
							<tr>
								<td><input type="checkbox" name="" id="" value="" /></td>
								<td><a href="shgl2-1.html"><img src="img/tianjia.png"/></a></td>
								<td><a href="jqgl.html"><img src="img/xiashujiqi.png"/></a></td>
								<td><a href="shgl2-2.html"><img src="img/xiugai.png" alt="" /></a></td>
								<td><a href="#" onclick="sendurl1('BusinessUser_Password.html','重设密码',false,400,200)"><img src="img/chongshemm.png"/></a></td>
								<td><a href="#" onclick="sendurl1('SetUpApi.html','Api设置',false,300,200)"><img src="img/apishezhi.png"/></a></td>
								<td><a href=""><img src="img/cuo.png"/></a></td>
								<td class="cuo">✘</td>
								<td class="dui">启用</td>
								<td>1013</td>
								<td>1013</td>
								<td>广州伊耐净洗涤设备制造有限公司</td>
								<td></td>
								<td></td>
								<td></td>
								<td>广州</td>
							</tr>
						</table>
						<a  onclick="javascript:window.location.href='shgl.html'"><span class="pltj btn">新增</span></a>
					</form>
				</div>
			</div>
			<div class="mask"></div>
				<div id="openWindowModal" class="modal in">   
				    <div class="modal-header">
				        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				        <h3>重设密码</h3>  
				    </div>
				    <div class="modal-body">
				    	<iframe src="" style="width: 100%;height: 99%;" frameborder="no" id="openWindowIFrame"></iframe>
				    </div>
				    <!--<div class="modal-footer">
				        <button id="openWindowBtn" class="btn btn-primary" type="submit">确 定</button>
				        <button class="btn close" data-dismiss="modal" aria-hidden="true" type="button">取 消</button>
				    </div>-->
				</div>
		</div>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var bw=$('body').width();
			$('.mask').width(bw-247);
			$(".close").on('click',function(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$('#openWindowIFrame').attr('src','');
			})
			function closewindow(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$('#openWindowIFrame').attr('src','');
			}
			$(".mask").on('click',function(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$("#openWindowModal1").fadeOut();
				$('#openWindowIFrame').attr('src','');
			})
			$('#openWindowBtn').on('click',function(){
				$('#input1').nextAll().eq(0).css('display','none');
				var input1=$.trim($('#input1').val());
				var input2=$.trim($('#input2').val());
				if(!input1){
					$('#input1').nextAll().eq(0).css('display','inline-block');
					return false;
				}else if(input1!=input2){
					$('#input2').nextAll().eq(0).css('display','inline-block');
					return false;
				}else{
					return true;
				}
			})
			function _checkFormAll(isChecked)
				{
					$(":checkbox").each(function() {
						$(this).prop("checked", isChecked);
					});
				}
//			$(document).ready(function(){
//				$('#openWindowBtn').click(function(e) {
//					console.log($('#openWindowIFrame').contents().find("#btnSubmit").length)
//					if ($('#openWindowIFrame').contents().find("#btnSubmit").length > 0){
//						$('#openWindowIFrame').contents().find("#btnSubmit").click();
//					}else{
//			        	$('#openWindowIFrame').contents().find(":submit").click();
//					}
//			    
//				});
//			});
		</script>
	</body>
</html>
